---
title: Reset job arguments
summary: Clears all 20 argument slots so a clsRequestAppworxJob instance can be reused without stale values.
status: draft
owner: <owner>
last_reviewed: 2026-08-21
library: SAIF.Services.Appworx
reference_type: package
operation_id: OP-APX-002
trigger: clsRequestAppworxJob constructor, or explicit call to InitArgs()
---

# Reset job arguments

This operation resets all 20 argument slots (`Arg1`–`Arg20`) to empty, ensuring no stale values leak between calls on a reused `clsRequestAppworxJob` instance.

| Field | Value |
| --- | --- |
| **Operation ID** | OP-APX-002 |
| **Trigger** | Called from the constructor `New(inDPI)`, and from the shared `SubmitBatchJob` overload before populating arguments. |
| **Inputs** | None |
| **Outputs** | `Arg1`–`Arg20` reset to empty (no database interaction) |
| **Primary components** | `clsRequestAppworxJob.InitArgs` |
| **Entry point** | `SAIF.Services.Appworx\clsRequestAppworxJob.vb` |

## Steps

1. Sets each of `m_Arg1`–`m_Arg20` (`clsSmartString` instances) to empty via `SetEmpty()`. No SQL or table interaction is performed.
2. Returns; the instance's argument slots are now guaranteed empty and ready for reuse.

## Process flow

```mermaid
flowchart TD
	Start([InitArgs called]) --> S1[SetEmpty on m_Arg1..m_Arg20]
	S1 --> EndOk([All 20 argument slots empty])
```

## Failure and edge-case behavior

- None identified; this operation has no branching or failure path.

## Related documentation
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)

## Sources
- `SAIF.Services.Appworx\clsRequestAppworxJob.vb`
